SPARTA (7 Jul 2014)
# advect particles via free molecular flow on a uniform grid
# particles reflect off global box boundaries

variable            x index 10
variable            y index 10
variable            z index 10

variable            lx equal $x*1.0e-5
variable            lx equal 20*1.0e-5
variable            ly equal $y*1.0e-5
variable            ly equal 20*1.0e-5
variable            lz equal $z*1.0e-5
variable            lz equal 25*1.0e-5

variable            n equal 10*$x*$y*$z
variable            n equal 10*20*$y*$z
variable            n equal 10*20*20*$z
variable            n equal 10*20*20*25

seed	    	    12345
dimension   	    3
global              gridcut 1.0e-5

boundary	    rr rr rr

create_box  	    0 ${lx} 0 ${ly} 0 ${lz}
create_box  	    0 0.0002 0 ${ly} 0 ${lz}
create_box  	    0 0.0002 0 0.0002 0 ${lz}
create_box  	    0 0.0002 0 0.0002 0 0.00025
Created orthogonal box = (0 0 0) to (0.0002 0.0002 0.00025)
create_grid 	    $x $y $z
create_grid 	    20 $y $z
create_grid 	    20 20 $z
create_grid 	    20 20 25
Created 10000 child grid cells
  parent cells = 1
  CPU time = 0.0014801 secs
  create/ghost percent = 91.962 8.03802

balance_grid        rcb part
Balance grid migrated 0 cells
  CPU time = 0.014142 secs
  reassign/sort/migrate/ghost percent = 5.54319 0.219165 0.473734 93.7639

species		    ar.species Ar
mixture		    air Ar vstream 0.0 0.0 0.0 temp 273.15

global              nrho 7.07043E22
global              fnum 7.07043E6

create_particles    air n $n
create_particles    air n 100000
Created 100000 particles
  CPU time = 0.0189981 secs

stats		    10
compute             temp temp
stats_style	    step cpu np nattempt ncoll c_temp

# equilibrate with large timestep to unsort particles
# then benchmark with normal timestep

timestep 	    7.00E-8
run                 30
Memory usage per proc in Mbytes:
  particles (ave,min,max) = 10.2997 10.2997 10.2997
  grid      (ave,min,max) = 1.83113 1.83113 1.83113
  surf      (ave,min,max) = 0 0 0
  total     (ave,min,max) = 12.1308 12.1308 12.1308
Step CPU Np Natt Ncoll temp 
       0            0   100000        0        0    273.05707 
      10   0.19033718   100000        0        0    273.05707 
      20   0.39239407   100000        0        0    273.05707 
      30     0.595438   100000        0        0    273.05707 
Loop time of 0.595454 on 1 procs for 30 steps with 100000 particles

Particle moves    = 3000000 (3M)
Cells touched     = 14434329 (14.4M)
Particle comms    = 0 (0K)
Boundary collides = 560072 (0.56M)
Boundary exits    = 0 (0K)
SurfColl checks   = 0 (0K)
SurfColl occurs   = 0 (0K)
Collide attempts  = 0 (0K)
Collide occurs    = 0 (0K)
Particles stuck   = 0

Particle-moves/CPUsec/proc: 5.03817e+06
Particle-moves/step: 100000
Cell-touches/particle/step: 4.81144
Particle comm iterations/step: 1
Particle fraction communicated: 0
Particle fraction colliding with boundary: 0.186691
Particle fraction exiting boundary: 0
Surface-checks/particle/step: 0
Surface-collisions/particle/step: 0
Collision-attempts/particle/step: 0
Collisions/particle/step: 0

Move  time (%) = 0.593352 (99.647)
Coll  time (%) = 0 (0)
Sort  time (%) = 0 (0)
Comm  time (%) = 3.69549e-05 (0.00620617)
Outpt time (%) = 0.00204706 (0.343782)
Other time (%) = 1.81198e-05 (0.00304302)

Particles: 100000 ave 100000 max 100000 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Cells:      10000 ave 10000 max 10000 min
Histogram: 1 0 0 0 0 0 0 0 0 0
GhostCell: 0 ave 0 max 0 min
Histogram: 1 0 0 0 0 0 0 0 0 0
EmptyCell: 0 ave 0 max 0 min
Histogram: 1 0 0 0 0 0 0 0 0 0
timestep 	    7.00E-9
run 		    100
Memory usage per proc in Mbytes:
  particles (ave,min,max) = 10.2997 10.2997 10.2997
  grid      (ave,min,max) = 1.83113 1.83113 1.83113
  surf      (ave,min,max) = 0 0 0
  total     (ave,min,max) = 12.1308 12.1308 12.1308
Step CPU Np Natt Ncoll temp 
      30            0   100000        0        0    273.05707 
      40  0.033815861   100000        0        0    273.05707 
      50  0.067559958   100000        0        0    273.05707 
      60    0.1011579   100000        0        0    273.05707 
      70   0.13485789   100000        0        0    273.05707 
      80   0.16855788   100000        0        0    273.05707 
      90   0.20214796   100000        0        0    273.05707 
     100   0.23577285   100000        0        0    273.05707 
     110   0.26936388   100000        0        0    273.05707 
     120   0.30306888   100000        0        0    273.05707 
     130   0.33675003   100000        0        0    273.05707 
Loop time of 0.336766 on 1 procs for 100 steps with 100000 particles

Particle moves    = 10000000 (10M)
Cells touched     = 13811948 (13.8M)
Particle comms    = 0 (0K)
Boundary collides = 186340 (0.186M)
Boundary exits    = 0 (0K)
SurfColl checks   = 0 (0K)
SurfColl occurs   = 0 (0K)
Collide attempts  = 0 (0K)
Collide occurs    = 0 (0K)
Particles stuck   = 0

Particle-moves/CPUsec/proc: 2.96942e+07
Particle-moves/step: 100000
Cell-touches/particle/step: 1.38119
Particle comm iterations/step: 1
Particle fraction communicated: 0
Particle fraction colliding with boundary: 0.018634
Particle fraction exiting boundary: 0
Surface-checks/particle/step: 0
Surface-collisions/particle/step: 0
Collision-attempts/particle/step: 0
Collisions/particle/step: 0

Move  time (%) = 0.329817 (97.9366)
Coll  time (%) = 0 (0)
Sort  time (%) = 0 (0)
Comm  time (%) = 0.000123978 (0.0368142)
Outpt time (%) = 0.00677323 (2.01126)
Other time (%) = 5.14984e-05 (0.015292)

Particles: 100000 ave 100000 max 100000 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Cells:      10000 ave 10000 max 10000 min
Histogram: 1 0 0 0 0 0 0 0 0 0
GhostCell: 0 ave 0 max 0 min
Histogram: 1 0 0 0 0 0 0 0 0 0
EmptyCell: 0 ave 0 max 0 min
Histogram: 1 0 0 0 0 0 0 0 0 0
